package com.ruoyi.jiaopei.service;

import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.ruoyi.jiaopei.domain.TbCurriculum;
import com.ruoyi.jiaopei.domain.TbCurriculumStudent;
import com.ruoyi.jiaopei.domain.vo.TbCurriculumStudentVo;
import com.ruoyi.jiaopei.domain.bo.TbCurriculumStudentBo;
import com.ruoyi.common.core.page.TableDataInfo;
import com.ruoyi.common.core.domain.PageQuery;

import java.util.Collection;
import java.util.List;

/**
 * 课程学员Service接口
 *
 * @author macy
 * @date 2024-04-03
 */
public interface ITbCurriculumStudentService {

    /**
     * 查询课程学员
     */
    TbCurriculumStudentVo queryById(Long id);

    Long selectCount(Wrapper<TbCurriculumStudent> queryWrapper);



    /**
     * 查询课程学员列表
     */
    TableDataInfo<TbCurriculumStudentVo> queryPageList(TbCurriculumStudentBo bo, PageQuery pageQuery);

    /**
     * 查询课程学员列表
     */
    List<TbCurriculumStudentVo> queryList(TbCurriculumStudentBo bo);

    /**
     * 新增课程学员
     */
    Boolean insertByBo(TbCurriculumStudentBo bo);

    /**
     * 修改课程学员
     */
    Boolean updateByBo(TbCurriculumStudentBo bo);

    /**
     * 校验并批量删除课程学员信息
     */
    Boolean deleteWithValidByIds(Collection<Long> ids, Boolean isValid);
}
